Appending a ID column to a data frame based on reference columns between two data frames